package com.liuxing.doctor.service.impl;

import com.liuxing.doctor.entity.Department;
import com.liuxing.doctor.mapper.DepartmentMapper;
import com.liuxing.doctor.service.DepartmentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 行柳
 * 学习使用
 */
@Service
@Slf4j
public class DepartmentServiceImpl implements DepartmentService {
    @Resource
    private DepartmentMapper departmentMapper;
    @Override
    public Department queryDepartmentByDoctorId(String doctor_id) {
        return departmentMapper.selectDepartmentByDoctorId(doctor_id);
    }

    @Override
    public Department queryDepartmentById(String id) {
        return departmentMapper.selectDepartmentById(id);
    }
}
